package main

import (
	"fmt"
	"unicode/utf8"
)

func main() {
	str := "Yes喵喵乐"
	fmt.Printf("%X \n", []byte(str), len(str)) // int=12

	for i, i2 := range str {
		fmt.Printf("(%d %X) ", i, i2)
	}

	inString := utf8.RuneCountInString(str)
	println(inString)

	for i, ch := range []rune(str) {
		fmt.Println(i, ch)
	}
}
